﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Max.PH6_2009A.LowCode.DTO
{
    public class ResponseResultDto
    {
        public ResponseResultCode Code { get; set; } = ResponseResultCode.Success;
        public string Message { get; set; } = "操作成功";
        public dynamic Data { get; set; }

    }

    public enum ResponseResultCode
    {
        Success = 200,
        Failed  =500,

        RoleNameRepeat = -201,//角色名重复
        UserNameRepeat = -202, //用户名重复
        MenuNameRepeat = -203, //菜单名重复

        [Display(Description ="用户名已存在")]
        UserNameNull = -210,//用户名为空
        RoleNameNull = -211,//角色名为空
        MenuNameNull = -212,//菜单名为空
    } 
}
